﻿@model LynxWiki.DomainModel.TagCloud

@using System.Globalization;
@if (Model != null) {
<div class="TagCloud">
    @foreach (KeyValuePair<string, int> item in Model.TagCount) {
        <span class="@Model.GetRankForTag(item.Value)">
            <a href="@Url.Action("Index", "ListTopic", new { selectType = "Tag", criteria = @item.Key })">@CultureInfo.CurrentCulture.TextInfo.ToTitleCase(item.Key)</a>
        </span>
    }
</div>
}